/**
 * 财务管理模块 http 请求
 */
import http from '@/utils/request'

export const gainBillNo = (data) => {
  return http.get('/api/erp/finance/projectProgress/erpFinanceProjectProgressPaymentApplicationBill/getBillNo', data)
}

export const add = (data) => {
  return http.post('/api/erp/finance/projectProgress/erpFinanceProjectProgressPaymentApplicationBill/add', data)
}

export const edit = (data) => {
  return http.put('/api/erp/finance/projectProgress/erpFinanceProjectProgressPaymentApplicationBill/edit', data)
}

export const info = (data) => {
  return http.get('/api/erp/finance/projectProgress/erpFinanceProjectProgressPaymentApplicationBill/queryById', data)
}

export const queryBillByProject = (data) => {
  return http.get('/api/erp/finance/projectProgress/erpFinanceProjectProgressPaymentApplicationBill/queryByProject', data)
}

export const queryLastApplyByContractId = (data) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManager/queryLastApplyByContractId', data)
}

export const queryBillByContract = (data) => {
  return http.get('/api/erp/finance/projectProgress/erpFinanceProjectConstructionPartyInfo/queryBillByContract', data)
}

export const findInvoiceAmountCount = (data) => {
  return http.get('/api/erp/finance/invoice/erpFinanceInvoiceApplicationBill/findInvoiceAmountCount', data)
}